package cn.smile.business.msg;

import cn.smile.bean.entity.msg.EmailInfo;
import cn.smile.commons.domain.IBaseService;
import cn.smile.commons.enums.msg.MailCodeEnum;

/**
 * @author smile-jt
 */
public interface IEmailInfoService extends IBaseService<EmailInfo> {

    /**
     * 发送邮件
     *
     * @param codeEnum   消息Code
     * @param entity     消息内容填充对象
     * @param receiveAdd 接收用户邮箱地址
     * @return 发送结果
     */
    Boolean sendMail(MailCodeEnum codeEnum, Object entity, String receiveAdd);
}
